package com.youku.plugins.topbarV4
{
   import com.youku.interfaces.IPlugin;
   import com.youku.plugins.topbarV4.view.TopbarMediator;
   import flash.display.MovieClip;
   import com.youku.interfaces.IPlayerProxy;
   import flash.net.registerClassAlias;
   
   public class TopbarFacade extends Object implements IPlugin
   {
      
      public function TopbarFacade() {
         super();
      }
      
      private static var _instance:TopbarFacade;
      
      public static function getInstance() : TopbarFacade {
         if(_instance == null)
         {
            _instance = new TopbarFacade();
         }
         return _instance as TopbarFacade;
      }
      
      private var _topbarMediator:TopbarMediator;
      
      public function init(param1:MovieClip, param2:IPlayerProxy) : void {
         registerClassAlias("T_btn_up",T_btn_up);
         registerClassAlias("T_btn_over",T_btn_over);
         registerClassAlias("T_btn_down",T_btn_over);
         registerClassAlias("T_btn_disable",T_btn_over);
         this._topbarMediator = new TopbarMediator(param1,param2);
      }
   }
}
